﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ttlib
{
    public class ConsoleLogger : ILogger
    {
        public void Error(string message)
        {
            var oldcolor =Console.ForegroundColor;
            Console.Error.WriteLine("<error>"+message);
            Console.ForegroundColor = oldcolor;
        }

        public void Log(string message)
        {
            Console.WriteLine(message);
        }

        public void Warn(string message)
        {
            var oldcolor = Console.ForegroundColor;
            Console.WriteLine("<warn>"+message);
            Console.ForegroundColor = oldcolor;
        }
    }
}
